]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Add "opacity: 0" to minimize ease animation
authorKeyu Tao <me@taoky.moe>
Mon, 25 Sep 2023 11:42:31 +0000 (19:42 +0800)
committerMarge Bot <marge-bot@gnome.org>
Thu, 1 Feb 2024 13:17:02 +0000 (13:17 +0000)
Extensions like dash-to-dock use set_icon_geometry() to window.
This changes the dest and scale of ease animation of minimize and
makes it looks very strange. By setting dest opacity to 0 the animation
could be more natural.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2968>

js/ui/windowManager.js

index d85e1e09488c48dd06eb6897e1a669d7922a6375..dd67b8ea30fd7c9d4e4536c13069f0977a5069c2 100644 (file)
@@ -1192,6 +1192,7 @@ export class WindowManager {
             }
 
             actor.ease({
+                opacity: 0,
                 scale_x: xScale,
                 scale_y: yScale,
                 x: xDest,